import request from "@/scripts/request";

/**
 * 总体概况
 */

// 获取船舶流量
export function getCbll(params) {
  return request({
    url: `service/bridgeControl/overall/getCbll`,
    method: "get",
    params: params
  });
}

// 获取船舶流量
export function getBgAndWy(params) {
  return request({
    url: `service/bridgeControl/overall/getBgAndWy`,
    method: "get",
    params: params
  });
}

// 近三年来被撞桥梁
export function rammedBridge(params) {
  return request({
    url: `service/bridgeControl/overall/beizhuangBridge`,
    method: "get",
    params: params
  });
}

// 桥梁经纬度信息
export function getPosInfo(params) {
  return request({
    url: `service/bridgeControl/overall/getPosInfo`,
    method: "get",
    params: params
  });
}

// 获取航道事务中心列表
export function getBmCenter(params) {
  return request({
    url: `service/bridgeControl/overall/getBmCenter`,
    method: "get",
    params: params
  });
}

// 气象-获取省市
export function getProvince(params) {
  return request({
    url: `service/bridgeControl/overall/getProvince`,
    method: "get",
    params: params
  });
}

// 气象统计(市)
export function weatherStat(params) {
  return request({
    url: `service/bridgeControl/overall/weatherStat`,
    method: "get",
    params: params
  });
}

// // 首页/筛选查询
// export function getwaterwayBridgeDistribution(data) {
//   return request.post(`/bridge/overall/waterwayBridgeDistribution`, data);
// }

/**
 * 桥梁情况
 */

// 查询桥梁列表
export function getBridgeList(params) {
  return request({
    url: `service/bridgeControl/bridge/getBridgeList`,
    method: "get",
    params: params
  });
}

// 查询桥梁所在航道
export function getBgHd(params) {
  return request({
    url: `service/bridgeControl/bridge/getBgHd`,
    method: "get",
    params: params
  });
}

// 获取桥梁视频id
export function bgVideo(params) {
  return request({
    url: `service/bridgeControl/bridge/bgVideo`,
    method: "get",
    params: params
  });
}
// 获取桥梁视频url
export function getUrl(params) {
  return request({
    url: `service/bridgeControl/bridge/getUrl`,
    method: "get",
    params: params
  });
}
// 一桥一方案
// 桥梁立面图
export function bgElevation(params) {
  return request({
    url: `service/bridgeControl/bridge/bgElevation`,
    method: "get",
    params: params
  });
}
// 海事船舶密度
export function bgCbmd(params) {
  return request({
    url: `service/bridgeControl/bridge/bgCbmd`,
    method: "get",
    params: params
  });
}
// 一桥一方案
export function bridgePlan(params) {
  return request({
    url: `service/bridgeControl/bridge/bridgePlan`,
    method: "get",
    params: params
  });
}
// 查询桥梁画像
export function bridgePortrait(params) {
  return request({
    url: `service/bridgeControl/bridge/bridgePortrait`,
    method: "get",
    params: params
  });
}

// 桥梁基本信息
export function bridgeBaseInfo(params) {
  return request({
    url: `service/bridgeControl/bridge/bridgeBaseInfo`,
    method: "get",
    params: params
  });
}

// 桥梁通航安全风险及抗撞信息
export function bridgeWaterwayRisk(params) {
  return request({
    url: `service/bridgeControl/bridge/bridgeHole`,
    method: "get",
    params: params
  });
}

// 桥梁最新水位
export function bgWaterSit(params) {
  return request({
    url: `service/bridgeControl/bridge/bgNewWater`,
    method: "get",
    params: params
  });
}
// 桥梁最高最低水位
export function theHighLow(params) {
  return request({
    url: `service/bridgeControl/bridge/theHighLow`,
    method: "get",
    params: params
  });
}
// 桥梁近7天水位
export function bgRecentWater(params) {
  return request({
    url: `service/bridgeControl/bridge/bgRecentWater`,
    method: "get",
    params: params
  });
}
// 近一天水位
export function recentOneDay(params) {
  return request({
    url: `service/bridgeControl/bridge/recentOneDay`,
    method: "get",
    params: params
  });
}

// 预警情况
export function yawStatistics(params) {
  return request({
    url: `service/bridgeControl/bridge/yawStatistics`,
    method: "get",
    params: params
  });
}


// 监控终端
export function bgDeviceRate(params) {
  return request({
    url: `service/bridgeControl/bridge/bgDeviceRate`,
    method: "get",
    params: params
  });
}

// 获取桥梁图片
export function getBgPic(params) {
  return request({
    url: `service/bridgeControl/bridge/getBgPic`,
    method: "get",
    params: params
  });
}

/**
 * 航道情况
 */

// 获取水道列表
export function getWaterwayList(params) {
  return request({
    url: `service/bridgeControl/waterwaySituation/waterwayList`,
    method: "get",
    params: params
  });
}
// 获取标站列表
export function getWaterPoint(params) {
  return request({
    url: `service/bridgeControl/waterwaySituation/getWaterPoint`,
    method: "get",
    params: params
  });
}

// 航道基本信息
export function waterwayBaseInfo(params) {
  return request({
    url: `service/bridgeControl/waterwaySituation/waterwayBaseInfo`,
    method: "get",
    params: params
  });
}

// 航道最新水位
export function getNewWater(params) {
  return request({
    url: `service/bridgeControl/waterwaySituation/getNewWater`,
    method: "get",
    params: params
  });
}
// 航道最高最低水位
export function HDtheHighLow(params) {
  return request({
    url: `service/bridgeControl/waterwaySituation/theHighLow`,
    method: "get",
    params: params
  });
}
// 航道近7天水位
export function HDbgRecentWater(params) {
  return request({
    url: `service/bridgeControl/waterwaySituation/wyRecentWater`,
    method: "get",
    params: params
  });
}
// 航道近一天水位
export function HDrecentOneDay(params) {
  return request({
    url: `service/bridgeControl/waterwaySituation/recentOneDay`,
    method: "get",
    params: params
  });
}
// 航道巡检情况
export function channelInspection(params) {
  return request({
    url: `service/bridgeControl/waterwaySituation/channelInspection`,
    method: "get",
    params: params
  });
}

// 船舶流量
export function hdCbll(params) {
  return request({
    url: `service/bridgeControl/waterwaySituation/hdCbll`,
    method: "get",
    params: params
  });
}

// 船舶流量详情
export function hdCbllDetail(params) {
  return request({
    url: `service/bridgeControl/waterwaySituation/hdCbllDetail`,
    method: "get",
    params: params
  });
}

// 航道关联桥梁
export function associationBg(params) {
  return request({
    url: `service/bridgeControl/waterwaySituation/associationBg`,
    method: "get",
    params: params
  });
}

// 航道通告
export function waterwayNotice(params) {
  return request({
    url: `service/bridgeControl/waterwaySituation/waterwayNotice`,
    method: "get",
    params: params
  });
}

/**
 * 船舶情况
 */

// 获取观测点航道列表
export function getPointWaterway(params) {
  return request({
    url: `service/bridgeControl/shipSituation/getPointWaterway`,
    method: "get",
    params: params
  });
}

// 获取观测点桥梁列表
export function getPointBridge(params) {
  return request({
    url: `service/bridgeControl/shipSituation/getPointBridge`,
    method: "get",
    params: params
  });
}



// 船舶总体态势分析
export function shipTonAnalys(params) {
  return request({
    url: `service/bridgeControl/shipSituation/shipTonAnalys`,
    method: "get",
    params: params
  });
}

// 船舶流量趋势分析(近7天)
export function shipllAnalys(params) {
  return request({
    url: `service/bridgeControl/shipSituation/shipllAnalys`,
    method: "get",
    params: params
  });
}

// 船舶流量趋势分析(周)
export function shipllAnalysWeek(params) {
  return request({
    url: `service/bridgeControl/shipSituation/shipllAnalysWeek`,
    method: "get",
    params: params
  });
}

// 船舶流量趋势分析(月)
export function shipllAnalysMonth(params) {
  return request({
    url: `service/bridgeControl/shipSituation/shipllAnalysMonth`,
    method: "get",
    params: params
  });
}

// 船舶流量趋势分析(年)
export function shipllAnalysYear(params) {
  return request({
    url: `service/bridgeControl/shipSituation/shipllAnalysYear`,
    method: "get",
    params: params
  });
}

// 获取观测点经纬度
export function getPos(params) {
  return request({
    url: `service/bridgeControl/shipSituation/getPos`,
    method: "get",
    params: params
  });
}

// 航标情况
export function navigationSituation(params) {
  return request({
    url: `service/bridgeControl/waterwaySituation/navigationSituation`,
    method: "get",
    params: params
  });
}

// 事故概况
export function acciSit(params) {
  return request({
    url: `service/bridgeControl/sgfx/acciSit`,
    method: "get",
    params: params
  });
}

// 事故简报
export function acciInfo(params) {
  return request({
    url: `service/bridgeControl/sgfx/acciInfo`,
    method: "get",
    params: params
  });
}

// 事故视频
export function acciVideo(params) {
  return request({
    url: `service/bridgeControl/sgfx/acciVideo`,
    method: "get",
    params: params
  });
}

// 事故概况搜索框列表
export function getSelectList(params) {
  return request({
    url: `service/bridgeControl/sgfx/getSelectList`,
    method: "get",
    params: params
  });
}

// 事故概况获取年份
export function getYearList() {
  return request({
    url: `service/bridgeControl/sgfx/getYearList`,
    method: "get",
  });
}

// 各辖区桥梁分布情况
export function bgDistribute() {
  return request({
    url: `service/bridgeControl/bridge/bgDistribute`,
    method: "get",
  });
}

// 各辖区内河等级航道维护里程分布情况
export function nhdjhdDetail() {
  return request({
    url: `service/bridgeControl/waterwaySituation/nhdjhdDetail`,
    method: "get",
  });
}

// 船舶ais数据
export function getAisList() {
  return request({
    url: `service/bridgeControl/shipSituation/getAisList`,
    method: "get",
  });
}

//水路运输企业
export function waterWayCompany() {
  return request({
    url: `service/bridgeControl/digitalWater/waterWayCompany`,
    method: "get",
  });
}

//水运运量情况
export function waterTransport() {
  return request({
    url: `service/bridgeControl/digitalWater/waterTransport`,
    method: "get",
  });
}

//水运运力情况
export function waterCapacity() {
  return request({
    url: `service/bridgeControl/digitalWater/waterCapacity`,
    method: "get",
  });
}

//港口企业
export function portCompany() {
  return request({
    url: `service/bridgeControl/digitalPort/portCompany`,
    method: "get",
  });
}

//港口机械
export function portMachine() {
  return request({
    url: `service/bridgeControl/digitalPort/portMachine`,
    method: "get",
  });
}

//泊位
export function berthLine() {
  return request({
    url: `service/bridgeControl/digitalPort/berthLine`,
    method: "get",
  });
}

//港口吞吐情况
export function goodsSit() {
  return request({
    url: `service/bridgeControl/digitalPort/goodsSit`,
    method: "get",
  });
}

//船舶概览
export function shipSit() {
  return request({
    url: `service/bridgeControl/shipSituation/shipSit`,
    method: "get",
  });
}

//桥梁闸坝经纬度
export function bgZbPosition() {
  return request({
    url: `service/bridgeControl/bridge/bgZbPosition`,
    method: "get",
  });
}

//桥梁净高达标分布情况
export function bgDbDistribute() {
  return request({
    url: `service/bridgeControl/bridge/bgDbDistribute`,
    method: "get",
  });
}

//获取事务中心
export function getDepart() {
  return request({
    url: `service/bridgeControl/bridge/getDepart`,
    method: "get",
  });
}

//桥梁净高通航孔净高值
export function bgHighHole(params) {
  return request({
    url: `service/bridgeControl/bridge/bgHighHole`,
    method: "get",
    params: params
  });
}

//中山航道里程
export function baseInfo() {
  return request({
    url: `service/bridgeControl/bridge/zhongshan/baseInfo`,
    method: "get",
  });
}

//中山桥梁列表
export function bgList() {
  return request({
    url: `service/bridgeControl/bridge/zhongshan/bgList`,
    method: "get",
  });
}

//中山桥梁经纬度
export function bgPosition(params) {
  return request({
    url: `service/bridgeControl/bridge/zhongshan/bgPosition`,
    method: "get",
    params: params
  });
}

//中山桥梁画像
export function bridgePortraitZhongshan(params) {
  return request({
    url: `service/bridgeControl/bridge/zhongshan/bridgePortrait`,
    method: "get",
    params: params
  });
}

//桥区船舶密度
export function bgCbmdTrand(params) {
  return request({
    url: `service/bridgeControl/bridge/bgCbmdTrand`,
    method: "get",
    params: params
  });
}

//水位情况差值
export function waterPredict(params) {
  return request({
    url: `service/bridgeControl/waterwaySituation/waterPredict`,
    method: "get",
    params: params
  });
}

//根据桥梁获取事务中心
export function getCenterByBg(params) {
  return request({
    url: `service/bridgeControl/shipSituation/hdfz/getCenterByBg`,
    method: "get",
    params: params
  });
}

//观测船舶流量、吨位趋势及预测图
export function shipTrend(params) {
  return request({
    url: `service/bridgeControl/shipSituation/hdfz/shipTrend`,
    method: "get",
    params: params
  });
}

//隐患桥梁情况-地市划分
export function cityDivision() {
  return request({
    url: `service/bridgeControl/bridge/hidden/cityDivision`,
    method: "get",
  });
}

//隐患桥梁情况-流域划分
export function regionDivision() {
  return request({
    url: `service/bridgeControl/bridge/hidden/regionDivision`,
    method: "get",
  });
}

//隐患桥梁基本信息
export function hiddenBaseInfo() {
  return request({
    url: `service/bridgeControl/bridge/hidden/baseInfo`,
    method: "get",
  });
}

//桥梁净高终端
export function bridgeHeight() {
  return request({
    url: `service/waterway/bridgeSituation/bridgeHeight`,
    method: 'get',
  })
}

//获取桥梁全景
export function bgModel(params) {
  return request({
    url: `service/bridgeControl/bridge/bgModel`,
    method: 'get',
    params: params
  })
}

//风速情况
export function windSpeed(params) {
  return request({
    url: `service/bridgeControl/bridge/windSpeed`,
    method: 'get',
    params: params
  })
}

//能见度情况
export function nengjiandu(params) {
  return request({
    url: `service/bridgeControl/bridge/njd`,
    method: 'get',
    params: params
  })
}